import java.util.Scanner;

// 定义GeographicInfo类用于存储地理位置信息
class GeographicInfo {
    double latitude;
    double longitude;

    // 构造函数
    public GeographicInfo(double latitude, double longitude) {
        this.latitude = latitude;
        this.longitude = longitude;
    }

    // 重写toString方法以特定格式输出位置信息
    @Override
    public String toString() {
        return "(" + latitude + "," + longitude + ")";
    }
}

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 输入A点的位置信息
     
        double latitudeA = scanner.nextDouble();
     
        double longitudeA = scanner.nextDouble();

        // 输入B点的位置信息
       
        double latitudeB = scanner.nextDouble();
      
        double longitudeB = scanner.nextDouble();

        // 创建GeographicInfo对象
        GeographicInfo pointA = new GeographicInfo(latitudeA, longitudeA);
        GeographicInfo pointB = new GeographicInfo(latitudeB, longitudeB);

        // 输出两个位置点的信息
        System.out.println(pointA.toString());
        System.out.println(pointB.toString());

        scanner.close();
    }
}